package com.sf.business.appointment.mapper;

import com.sf.business.appointment.domain.BusCheckout;
import com.sf.business.appointment.qo.BusCheckoutQO;

import java.util.List;

/**
 * 结算单Mapper接口
 * 
 * @author liuhe
 * @date 2025-03-23
 */
public interface BusCheckoutMapper 
{
    /**
     * 查询结算单
     * 
     * @param id 结算单主键
     * @return 结算单
     */
    public BusCheckout selectBusCheckoutById(Long id);

    /**
     * 查询结算单列表
     * 
     * @param busCheckout 结算单
     * @return 结算单集合
     */
    public List<BusCheckout> selectBusCheckoutList(BusCheckoutQO qo);

    /**
     * 新增结算单
     * 
     * @param busCheckout 结算单
     * @return 结果
     */
    public int insertBusCheckout(BusCheckout busCheckout);

    /**
     * 修改结算单
     * 
     * @param busCheckout 结算单
     * @return 结果
     */
    public int updateBusCheckout(BusCheckout busCheckout);

    /**
     * 删除结算单
     * 
     * @param id 结算单主键
     * @return 结果
     */
    public int deleteBusCheckoutById(Long id);

    /**
     * 批量删除结算单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusCheckoutByIds(Long[] ids);

    /**
     * 根据预约单id查询结算单
     * @param appointmentId
     * @return
     */
    BusCheckout selectBusCheckoutByAppointmentId(Long appointmentId);
}
